<template>
  <div>
    <!-- 子页面视窗 -->
    <router-view />
    <van-tabbar
      v-model="active"
      route
    >
      <van-tabbar-item
        name="home"
        to="/home"
        icon="wap-home-o"
      >
        首页
      </van-tabbar-item>
      <van-tabbar-item
        name="qa"
        to="/qa"
        icon="chat-o"
      >
        问答
      </van-tabbar-item>
      <van-tabbar-item
        name="video"
        to="/video"
        icon="play-circle-o"
      >
        视频
      </van-tabbar-item>
      <van-tabbar-item
        name="mine"
        to="/mine"
        icon="user-o"
      >
        我的
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>

export default {
  name: 'MainPage',
  data() {
    return {
      active: 'home',
    };
  },
  methods: {

  },
}
</script>

<style>

</style>
